﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace CES_Application.Telas
{
    public partial class FormPrincipal : Office2007Form
    {
        public FormPrincipal()
        {
            InitializeComponent();
        }
        /*private void btniProduto_Click(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            Tela_Produto tp = new Tela_Produto(this);
            tp.MdiParent = this;
            tp.Show();
        }*/

        private void FormPrincipal_Load(object sender, EventArgs e)
        {
            timer1.Start();
            //RibbonPredefinedColorSchemes.ChangeOffice2007ColorTable(this, DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.VistaGlass);
            tssLbldataHora.Text = DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");
        }

        private void pRODUTOToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            Tela_Produto tp = new Tela_Produto(this);
            tp.MdiParent = this;
            tp.Show();
        }

        private void tspbntProduto_Click(object sender, EventArgs e)
        {

            this.IsMdiContainer = true;
            Tela_Produto tp = new Tela_Produto(this);
            tp.MdiParent = this;
            tp.Show();

        }

        private void tspbntbtnCalc_Click(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            Tela_Calculadora tp = new Tela_Calculadora(); 
            tp.MdiParent = this;
            tp.Show();
        }

        private void cAIXAToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            Tela_Caixa tp = new Tela_Caixa(this);
            tp.MdiParent = this;
            tp.Show();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            Tela_Caixa tp = new Tela_Caixa(this);
            tp.MdiParent = this;
            tp.Show();

        }

        private void tspbntVenda_Cartao_Click(object sender, EventArgs e)
        {

            this.IsMdiContainer = true;
            Tela_VendaCartoes tp = new Tela_VendaCartoes();
            tp.MdiParent = this;
            tp.Show();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            tssLbldataHora.Text = DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");
        }


       /* private void produtoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            Tela_Produto tp = new Tela_Produto(this);
            tp.MdiParent = this;
            tp.Show();
        }*/
    }
}
